<template>
  <div>
    <h3>extends --- {{ title }}</h3>
    <msg></msg>
  </div>
</template>

<script>
import msg from './msg'
export default {
  components: { msg },
  // 继承，它只能继承方法和属性不能继承模板
  extends: msg,
  created() {
    console.log(this.run())
  }
}
</script>

<style lang="scss" scoped></style>
